package com.atguigu.service;
/**
 * @author dl
 * @create 2020-04-18-16:00
 */

import com.atguigu.domain.User;

/**
 * @author Long
 * @date 2020/4/18
 */
public interface UserService {

	/**
	 * user login
	 * @param user
	 * @return
	 */
	User userLogin(User user);

	/**
	 * user register
	 * @param user
	 * @return boolean true:success false:failed
	 */
	boolean userRegister(User user);

	/**
	 * 用户名是否存在
	 * @param username
	 * @return
	 */
	boolean existsName(String username);

}
